﻿<UserControl x:Class="LogoScriptIDE.StackWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        >
    <Grid>
        <DataGrid Name="ui_grid"
                  Height="Auto"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch" 
                  Width="Auto" 
                  IsReadOnly="True"
                  CanUserResizeRows="False"
                  HorizontalContentAlignment="Stretch"
                  FontFamily="Consolas"
                  HeadersVisibility="Column"
                  CanUserSortColumns="False"
                  MouseDoubleClick="ui_grid_MouseDoubleClick"
                  AutoGenerateColumns="False" CanUserReorderColumns="False" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Visible">

            <DataGrid.Columns>
                <DataGridTextColumn x:Name="ui_depthColumn" Width="Auto"  CanUserResize="False" Header="Depth" Binding="{Binding Depth}"></DataGridTextColumn>
                <DataGridTextColumn x:Name="ui_lineColumn" Width="Auto" CanUserResize="False" Header="Line" Binding="{Binding Line}"></DataGridTextColumn>
                <DataGridTextColumn x:Name="ui_functionColumn" Width="Auto" CanUserResize="False" Header="Function" Binding="{Binding Function}"></DataGridTextColumn>
            </DataGrid.Columns>

            <DataGrid.Resources>

                <ResourceDictionary>
                    <Style x:Key="{x:Type DataGridCell}" TargetType="{x:Type DataGridCell}">
                        <Setter Property="BorderBrush" Value="Transparent" />
                    </Style>
                </ResourceDictionary>
            </DataGrid.Resources>
        </DataGrid>
    </Grid>
</UserControl>
